/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import '../../../styles/variables.less';

.feed-explore-heading {
  background-color: @grey-1;
}

.activity-feed-tab {
  display: flex;
  width: 100%;
  overflow-x: hidden;
  border: 1px solid @grey-15;
  border-radius: @border-rad-sm;

  .custom-menu.ant-menu-root.ant-menu-inline {
    .ant-menu-item {
      height: 40px;
    }
  }

  .center-container {
    flex: 1;
    min-width: 0;
    height: @user-profile-page-panel-height;
    overflow-y: scroll;
    border-radius: 12px;
    background-color: @white;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid @grey-15;

    &.full-width {
      flex: 10;
      margin-right: 0px;
    }
  }

  .right-container {
    flex: 1;
    min-width: 0;
    border: none;
    height: @user-profile-page-panel-height;
    overflow-y: scroll;
    background-color: @white;
    border-radius: 12px;
    border: 1px solid @grey-15;

    .full-width {
      flex: 0;
    }

    .activity-feed-card-container {
      margin: 0px;
    }

    .activity-feed-comments-container {
      border-radius: 12px;
      padding: 16px;
      margin: 20px 0px 0px 0px;
      border: 0.5px solid #eaecf5;
      background: @grey-9;
    }

    .activity-feed-reply-button {
      border-radius: 24px;
      border: 1px solid #d4d4d8;
      color: #52525b;
      font-size: 12px;
    }

    .comments-input-field {
      background-color: @grey-16;
      border-radius: 20px;
      border: 1px solid #eaecf5;
      height: 36px;
      font-size: 12px;
      line-height: 14.52px;

      &::placeholder {
        color: @grey-400;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
      }
    }
  }

  .three-panel-layout {
    border-radius: 0px;
    margin-right: 0px;
    border: 0px;
  }

  .three-panel-layout.right-container {
    border-left: 1px solid @grey-15;
  }

  .hide-panel {
    flex: 0;
    margin-right: 0px;
    border: none;
  }

  .left-container {
    flex: 0 0 @left-side-panel-width;
    border-right: @global-border !important;
  }

  .activity-feed-card-new {
    border-radius: 12px;
    background: @grey-9;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: inherit;
    border: 0.5px solid #eaecf5;

    .ant-card-body {
      width: inherit;
      padding: 20px;

      .ant-space-item {
        width: inherit;
      }
    }
  }

  .activity-feed-card-new.is-active {
    background: @primary-50;
    border: 1px solid @primary-3;
  }

  .activity-feed-card-message {
    padding: 20px;
    background-color: @white;
    width: inherit;
    margin-top: 2px;
    border: 0.5px solid #eaecf5;

    .ant-card-body {
      padding: 0px;
      border-radius: 8px;
    }
  }

  .activity-feed-card-message-right-panel {
    background: rgba(239, 244, 250, 0.25);
    margin-top: 10px;
  }

  .activity-feed-reply-card {
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: inherit;

    .ant-card-body {
      width: inherit;
      padding: 0px;
      //  margin: 10px  0px 20px 0px;
      padding-top: 20px;
      border-bottom: 1.5px solid #d4d4d8;
      background: rgba(239, 244, 250, 0.25);

      padding-bottom: 16px;

      .ant-space-item {
        width: inherit;
      }
    }

    .activity-feed-reply-card-message {
      padding-left: 50px;
      border: none;
      background: rgba(239, 244, 250, 0.25);

      .ant-card-body {
        margin: 0px;
        margin-top: -8px;
        margin-bottom: -6px;
        border: none;
        padding: 0px;
        background: rgba(239, 244, 250, 0.25);
      }

      .activity-feed-comment-text {
        word-wrap: break-word;
        white-space: normal;
        color: #535862;
      }
    }
  }

  .activity-feed-card-new-right-panel {
    background-color: @white;
    border: none;
  }

  .header-link {
    word-wrap: break-word;
    font-weight: 600;

    .ant-typography,
    .ant-typography a,
    &.ant-typography,
    &.ant-typography a,
    & a.ant-typography,
    & .ant-typography a {
      color: @primary-heading-color;

      &:hover {
        color: @primary-heading-color;
      }
    }
  }

  .feed-card-header-v2-timestamp {
    color: @grey-500;
  }

  .seperator {
    vertical-align: middle;
    font-size: 18px;
    font-weight: 800;
    color: @grey-500;
    padding-bottom: 2px;
  }
}

.activity-feed-task {
  background-color: @grey-1;
}

.count-loader.ant-skeleton-element .ant-skeleton-button-sm {
  width: 72px;
}

.activity-feed-editor-container-new {
  background-color: @grey-9;
  border: 0.5px solid @grey-15;
  border-radius: 10px;
  width: 100%;

  .ql-container {
    background-color: @grey-9;
    border: 1px solid @grey-15;
    width: 100%;

    &:focus-within {
      border: 0.5px solid @grey-15;
    }
  }

  .ql-toolbar {
    background-color: @grey-9;
    border: 1px solid @grey-15;
    flex-wrap: wrap;

    &:focus-within {
      border: 0.5px solid @grey-15;
    }
  }

  .ql-toolbar button {
    color: #292929;
  }
}

.activity-feed-card-container:not(:last-child) .horizontal-line {
  position: absolute;
  top: @size-sm;
  left: @size-sm;
  bottom: -17px;
  width: 1px;
  background-color: @blue-23;
}

.activity-feed-editor-send-btn {
  color: @white;

  .ant-btn.send-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
  }
}

.activity-feed-user-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.03em;
  color: #181d27;
}

.activity-feed-user-name.ant-typography a {
  color: #181d27;
  font-weight: 600;
}

.reply-card-user-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: #373e44;
}

.activity-feed-reply-card-footer {
  margin-left: 45px;
}

.active-card {
  background-color: #e6f1fe !important;
}

.task-tab-custom-dropdown {
  border-radius: 6px;

  .task-tab-filter-item {
    color: @text-color;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    &.selected {
      color: @primary-5;
    }
  }

  .ant-dropdown-menu {
    padding: 0px;
  }

  .task-count-container {
    background: #e9eaeb;
    border-radius: 16px;
    width: 30px;
    height: 22px;
    display: flex;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;

    &.active {
      background-color: @primary-5 !important;
    }

    .task-count-text {
      color: #414651;
      text-align: center;
      font-family: Inter;
      font-size: 12px;
      font-weight: 500;
      line-height: 18px;
    }

    &.active .task-count-text {
      color: @white;
    }
  }

  .ant-dropdown-menu .ant-dropdown-menu-item {
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    padding: 0px;

    .active {
      box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
      background-color: @primary-25;

      svg path {
        fill: @primary-5;
      }
    }
  }
}

.task-toggle {
  background: @white;
  border-radius: @size-sm;
  padding: 4px;
  border: 1px solid @grey-20;

  .ant-segmented-item {
    color: @text-color;
    transition: all 0.3s ease;

    &-selected {
      background: @blue-23;
      color: @primary-heading-color;
      text-align: center;
      border-radius: @size-xs;
      .ant-segmented-item-label {
        color: @primary-heading-color;
      }

      svg path {
        fill: @primary-heading-color;
      }
    }
  }

  &:hover {
    background: none !important;
  }

  &:focus {
    background: none !important;
  }

  .ant-segmented:not(.ant-segmented-disabled):hover,
  .ant-segmented:not(.ant-segmented-disabled):focus {
    background: none !important;
  }
}

.header-container-card {
  margin-top: -2px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  height: 40px;
  width: 100px;

  .ant-segmented-item-label {
    color: @grey-13;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }
}

.activity-feed-card-container.ant-btn:hover,
.activity-feed-card-container.ant-btn:focus {
  background-color: inherit !important;
  color: inherit !important;
  border-radius: 12px !important;
}

.activity-feed-comments-title {
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  color: #414651;
}

.card-style-feed-header {
  color: #535862;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.close-tab-icon {
  position: absolute;
  top: 24px;
  right: 20px;
}

.reply-feed-editor {
  .editor-container {
    margin: 0px;
  }
}

.footer-container {
  height: 24px;
}

.profile-picture {
  width: 32px;
}

.reply-card {
  padding-top: @padding-lg;
}

.reply-card-border-bottom {
  border-bottom: 0.5px solid #e4e4e4;
}

.reply-message {
  color: #4a4a4a;
  white-space: normal;
  word-break: break-word;
  display: block;
  font-size: 12px;
}

.reply-card-user-name.activity-feed-user-name.ant-typography a {
  color: @text-color;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.feed-footer-avatar-group .ant-avatar {
  margin-inline-end: -8px !important;
  border: 1px solid #fff;
}

.no-description-suggestion-card {
  padding: 20px;
  border: 0.5px solid #eaecf5;
  background: @white;
  border-radius: 12px;
  margin-top: 16px;
}

.task-toggle.ant-segmented {
  background-color: @white;
  border-radius: @size-sm;

  &:hover {
    .ant-segmented-item:not(.ant-segmented-item-selected) {
      background-color: @white;
    }
  }
}

.view-more-less-button {
  color: @primary-heading-color;
  font-size: 14px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 20px;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;

  &.ant-btn {
    color: @primary-heading-color;
    border: none;
    background: none;
    box-shadow: none;

    &:hover,
    &:focus,
    &:active {
      color: @primary-heading-color;
      border: none;
      background: none;
      box-shadow: none;
      outline: none;
    }

    &::before,
    &::after {
      display: none;
      content: none;
    }
  }
}

.task-filter-container {
  padding: 20px 20px 0px 20px;
}

.owners-label {
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-left: @margin-xs;
  margin-right: @margin-xs;
}

.owner-chip {
  border-radius: 8px;
  background: @grey-16;
  padding: 4px 8px;
  margin-right: @margin-xs;
  border: 1px solid @grey-15;

  .owner-team-icon {
    font-size: 24px !important;
  }
}

.owner-chip-text {
  color: @text-color;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  font-size: 14px !important;
  margin-left: @margin-xss;
}

.feed-filter-icon {
  cursor: pointer;
  &.ant-btn.ant-btn-default {
    border: 1px solid @grey-15;
    display: flex;
    align-items: center;
    justify-content: center;
    &.disabled {
      cursor: not-allowed;
      stroke: border-color-2;
      border-radius: @size-xs;
      border: 1px solid @grey-100;
      background: @white;
    }
    &:not(.disabled):hover {
      border: 1px solid @blue-12;

      svg {
        stroke: @blue-12;
        stroke-width: 0.2px;
      }
    }
    &.selected,
    &.ant-dropdown-open,
    &.ant-popover-open {
      border: 1px solid @blue-12;
      background: @primary-button-background;
      svg {
        stroke: @blue-12;
        stroke-width: 0.2px;
      }
    }
  }
}
.no-data-placeholder-container-right-panel {
  margin-top: @size-xl;
}
